/**
 * 
 */
package org.vsg.stock.basic.service.business;

import java.util.Comparator;

/**
 * @author Bill Vison
 *
 */
public class GoupingPointStockDailyKLineComparator implements Comparator<GoupingPointRefStockDailyKLine> {

	@Override
	public int compare(GoupingPointRefStockDailyKLine arg0,
			GoupingPointRefStockDailyKLine arg1) {
		
		if ( arg0.getReferPrice() > arg1.getReferPrice() ) {
			return 1;
		} 
		else if (arg0.getReferPrice() < arg1.getReferPrice()) {
			return -1;
		}
		
		return 0;
	}

	
	
}
